package testDozer;

import util.DozerBeanMapperUtil;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by admin on 2019/1/10.
 */
public class testDozer {
    public static void main(String[] args) {
        Member member = new Member();
        Accout accout = new Accout();
        accout.setName("accout");
        member.setAccout(accout);
        member.setName("member");
        Member member1 = new Member();
        DozerBeanMapperUtil.populate(member,member1);
        System.out.println(member1.toString());
        //****************
        List<Member> memberList = new ArrayList<Member>();
        memberList.add(member);
        memberList.add(member);
        memberList.add(member);
        List<Member> memberList2 = new ArrayList<Member>();
        DozerBeanMapperUtil.populate(memberList,memberList2);
        System.out.println(memberList2.toString());
    }
}
